<template>
    <div>
        <div class="one">
            <span class="left" @click="fan"><van-icon name="arrow-left" size="25" /></span>
            <slot></slot>
            <slot name="right"></slot>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Top",
        methods:{
            fan(){
                // console.log(this.$router);
                this.$router.go(-1)

            },
        }
    }
</script>

<style scoped>
    .one {
        background-color: #3190e8 ;
        height: 45px;
        line-height: 45px;
        /*display: flex;*/
        /*justify-content: space-between;*/
        color: white;
        text-align: center;
        font-size: 20px;
      width: 100%;

    }
.left{
    margin-top: 8px;
    float: left;
    height: 5px;
}

</style>